package config

import "github.com/spf13/viper"

type RedisConfig struct {
	Host     string
	Password string
	DB       int
}

func NewRedisConfig() *RedisConfig {
	return &RedisConfig{
		Host:     viper.GetString("redis.host") + ":" + viper.GetString("redis.port"),
		DB:       viper.GetInt("redis.db"),
		Password: viper.GetString("redis.psd"),
	}
}
